<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
        <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
        <title>分销佣金 | {$xiarikui_config['shop_info_store_title']}</title>
        <link rel="stylesheet" href="__PUBLIC__/bootstrap/css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="__MOBILE__/static/aui/css/aui.2.0.css" />
        <link rel="stylesheet" type="text/css" href="__MOBILE__/static/css/public.css">
        <link rel="stylesheet" type="text/css" href="__MOBILE__/static/css/distributionStyle.css">
        <script src="__PUBLIC__/js/global.js"></script>
        <script src="__PUBLIC__/js/mobile_common.js"></script>
        <script src="__MOBILE__/js/common.js"></script>
    </head>

    <body <notempty name='ios_no_wechat'>style='margin-top:1rem'</notempty>>
    <header class="aui-bar aui-bar-nav aui-bar-light" style="height:1rem;">
        <a href="javascript:history.back(-1)" class="aui-pull-left aui-btn">
            <span class="aui-iconfont aui-icon-left" style="color: #000"></span>
        </a>
        <div class="aui-title color_black">分销佣金</div>
    </header>
    <div class="banner_box">
        <p>可提现佣金 (元)</p>
        <p>
            <span class="cash_box">{$Rs.finishComm|default='0.00'}</span>
            <a href="{:U('AppDistribut/order')}" class="float_r text_box">查看明细 <span class="glyphicon glyphicon-circle-arrow-right"></span></a>
        </p>
        <!--<p>成功提现：<span>0.00</span></p>-->
    </div>
    <section class="aui-grid aui-margin-b-15 middle_box">
        <div class="aui-row aui-padded-l-15 aui-padded-r-15">
            <div class="aui-col-xs-6">
                <div class="c_p_box">
                    <p>累计佣金</p>
                    <p class="bold_p">{$Rs.allComm|default='0.00'}</p>
                    <p class="small_gary_p">所有佣金</p>
                </div>
            </div>
            <div class="aui-col-xs-6">
                <div class="c_p_box">
                    <p>已申请佣金</p>
                    <p class="bold_p">{$unPassMoney|default='0.00'}</p>
                    <p class="small_gary_p">待审核的佣金</p>
                </div>
            </div>
            <div class="aui-col-xs-6">
                <div class="c_p_box">
                    <p>待打款的佣金</p>
                    <p class="bold_p">{$passMoney|default='0.00'}</p>
                    <p class="small_gary_p">审核通过的佣金</p>
                </div>
            </div>
            <div class="aui-col-xs-6">
                <div class="c_p_box">
                    <p>准结算的佣金</p>
                    <p class="bold_p"><php>echo $Rs['unPayComm'] + $Rs['payComm'];</php></p>
                    <p class="small_gary_p">未完成订单的佣金</p>
                </div>
            </div>
        </div>
        <!--        <div class="aui-row">
                    <p class="mid_p_box">买家确认收货后，立即获得分销佣金。结算期({$distribut.date}天)后，佣金可提现。结算期内，买家退货，佣金将自动扣除。</p>
                </div>-->
        <div class="aui-row">
            <p class="bot_p_box">注意：可用现金满 <span class="red_p">{$distribut.need|default=100}</span> 元后才能申请提现</p>
        </div>
    </section>
    <if condition="$Rs[finishComm] egt $distribut.need ">
        <section class="commission_submit">
            <a href="{:U('User/cash')}"><div class="aui-btn aui-btn-block aui-btn-sm">我要提现</div></a>
        </section>
        <else /> 
        <section class="commission_unsubmit">
            <div class="aui-btn aui-btn-block aui-btn-sm">我要提现</div>
        </section>
    </if>
    <div style="width: 100%;height: 5rem;"></div>
    <include file="Public/myfooter" />
    <script type="text/javascript" src="__MOBILE__/static/js/jquery-1.12.0.min.js"></script>
    <script type="text/javascript" src="__MOBILE__/static/js/publicScripts.js"></script>
    <include file="Public/removeAd"/></body>

</html>
